package SQL;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Config{
	Properties properties = new Properties();
    //获取配置对象
	public  Properties getConfig(String configPath) throws IOException {
		String se = File.separator;
//		FileInputStream inputStream = new FileInputStream(se+"tsgz"+se+"data.properties");
//		FileInputStream inputStream = new FileInputStream(se+"SQL"+se+"data.properties");
		FileInputStream inputStream = new FileInputStream(configPath);
		properties.load(inputStream);
		inputStream.close();
		return properties;
	}
}
